* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    padding: 1.5rem;
    box-shadow: 0 0 10px #D4A86A,
        0 0 20px #D4A86A,
        0 0 30px rgba(212, 168, 106, 0.3),
        0 0 40px rgba(212, 168, 106, 0.2);
    animation: neonGlow 2s ease-in-out infinite alternate;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.brand-logo {
    font-family: 'Times New Roman', serif;
    font-size: 2rem;
    color: #D4A86A;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 3px;
    margin-left: 2rem;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    color: #fff;
    text-shadow: 0 0 10px #D4A86A;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    list-style: none;
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d4af37;
}

/* 主页区域样式 */
#home {
    min-height: 50vh;
    padding: 150px 20px 50px;
    text-align: center;
    /* background: linear-gradient(135deg, #1A3A4B 0%, #1A3A4B 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
}

.main-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: #D4A86A;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.sub-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #FFEECC;
    margin-top: 2rem;
    line-height: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* 商品展示区样式 */
#products {
    padding: 100px 20px;
    background-color: #1A3A4B;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* 动态元素样式 */
.dynamic-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.frankincense-drop {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #D4A86A;
    border-radius: 50%;
    opacity: 0;
    animation: frankincenseDrop 3s infinite;
}

.frankincense-drop:nth-child(1) {
    top: 20%;
    left: 30%;
}

.frankincense-drop:nth-child(2) {
    top: 15%;
    left: 45%;
    animation-delay: 0.5s;
    width: 8px;
    height: 8px;
}

.frankincense-drop:nth-child(3) {
    top: 25%;
    left: 60%;
    animation-delay: 1s;
    width: 12px;
    height: 12px;
}

.frankincense-drop:nth-child(4) {
    top: 18%;
    left: 75%;
    animation-delay: 1.5s;
    width: 9px;
    height: 9px;
}

.frankincense-drop:nth-child(5) {
    top: 22%;
    left: 15%;
    animation-delay: 2s;
    width: 11px;
    height: 11px;
}

.frankincense-drop:nth-child(6) {
    top: 28%;
    left: 85%;
    animation-delay: 2.5s;
    width: 10px;
    height: 10px;
}

.frankincense-drop:nth-child(7) {
    top: 12%;
    left: 25%;
    animation-delay: 3s;
    width: 9px;
    height: 9px;
}

.frankincense-drop:nth-child(8) {
    top: 30%;
    left: 50%;
    animation-delay: 3.5s;
    width: 11px;
    height: 11px;
}

.frankincense-drop:nth-child(9) {
    top: 16%;
    left: 70%;
    animation-delay: 4s;
    width: 8px;
    height: 8px;
}

.frankincense-drop:nth-child(10) {
    top: 24%;
    left: 35%;
    animation-delay: 4.5s;
    width: 10px;
    height: 10px;
}

.desert-rose {
    position: absolute;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 0 C60 40 90 50 50 100 C10 50 40 40 50 0" fill="%23D4A86A"/></svg>') no-repeat center;
    top: 10%;
    right: 30%;
    animation: desertRoseBloom 5s infinite;
}

.pearl-powder {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FFEECC;
    border-radius: 50%;
    box-shadow: 0 0 10px #FFEECC;
    top: 10%;
    left: 40%;
    animation: pearlFloat 4s infinite;
}

.filter-btn {
    padding: 12px 30px;
    border: 1px solid #D4A86A;
    background: transparent;
    color: #D4A86A;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 1rem;
    letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #d4af37;
    color: #1a1a1a;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 关于我们区域 */
#about {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1A3A4B 0%, #0D1F2A 100%);
    color: #FFEECC;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-title {
    font-size: 3rem;
    color: #D4A86A;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.about-subtitle {
    font-size: 1.5rem;
    color: #FFEECC;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.about-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.about-section h3 {
    color: #D4A86A;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(212, 168, 106, 0.3);
    padding-bottom: 1rem;
}

.about-section h4 {
    color: #FFEECC;
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    font-weight: 400;
}

.about-section p,
.about-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: rgba(255, 238, 204, 0.9);
}

.source-item,
.philosophy-item {
    margin-bottom: 2rem;
}

.craft-list,
.promise-list {
    list-style: none;
    padding-left: 0;
}

.craft-list li,
.promise-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.craft-list li:before {
    content: '•';
    color: #D4A86A;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

.promise-list li {
    color: #D4A86A;
}

.vision {
    text-align: center;
    background: linear-gradient(135deg, rgba(212, 168, 106, 0.1) 0%, rgba(255, 238, 204, 0.05) 100%);
}

.vision p {
    font-size: 1.3rem;
    line-height: 2;
    font-style: italic;
}

/* 联系表单样式 */
#contact {
    padding: 100px 20px;
    background-color: #1a1a1a;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #d4af37;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.submit-btn {
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* 图片放大弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show img {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: #d4af37;
}

/* 动画 */
/* 基础动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 乳香树脂滴落动画 */
@keyframes frankincenseDrop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(30px);
        opacity: 0;
    }
}

/* 沙漠玫瑰绽放动画 */
@keyframes desertRoseBloom {
    0% {
        transform: scale(0.5) rotate(-45deg);
        opacity: 0;
    }

    20% {
        transform: scale(0.7) rotate(-30deg);
        opacity: 0.3;
    }

    40% {
        transform: scale(0.85) rotate(-15deg);
        opacity: 0.6;
    }

    60% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    80% {
        transform: scale(1.1) rotate(10deg);
        opacity: 0.9;
    }

    90% {
        transform: scale(1.05) rotate(5deg);
        opacity: 0.95;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 珍珠粉悬浮动画 */
@keyframes pearlFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-10px) translateX(5px);
    }

    50% {
        transform: translateY(0) translateX(10px);
    }

    75% {
        transform: translateY(10px) translateX(5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .brand-logo {
        font-size: 1.5rem;
        margin-left: 1rem;
    }

    .nav-links {
        margin-right: 1rem;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.3rem;
    }

    .about-section h3 {
        font-size: 1.5rem;
    }

    .about-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .gallery-item img {
        height: 300px;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-section h3 {
        font-size: 1.3rem;
    }

    .about-section {
        padding: 1rem;
    }
}

/* 添加霓虹灯动画效果 */
@keyframes neonGlow {
    from {
        box-shadow: 0 0 10px #D4A86A,
            0 0 20px #D4A86A,
            0 0 30px rgba(212, 168, 106, 0.3),
            0 0 40px rgba(212, 168, 106, 0.2);
    }

    to {
        box-shadow: 0 0 15px #D4A86A,
            0 0 25px #D4A86A,
            0 0 35px rgba(212, 168, 106, 0.5),
            0 0 50px rgba(212, 168, 106, 0.3);
    }
}